Avoid util deep imports#380
Conversation
|
@QDyanbing is attempting to deploy a commit to the React Component Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
Walkthrough升级 package.json 中的 Changes依赖版本升级与导入修复
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 分钟 Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the @rc-component/util and @rc-component/father-plugin dependencies and refactors imports in Step.tsx and StepIcon.tsx to use named imports from the package root instead of deep imports. A review comment suggests reordering the imports in StepIcon.tsx to place external dependencies before local ones to maintain consistency and improve code structure.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #380 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 6 6
Lines 99 99
Branches 38 38
=========================================
Hits 99 99 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
变更内容
@rc-component/util到当前 latest^1.11.1。@rc-component/father-plugin到^2.2.0,交由插件统一处理 rc 深路径 import 限制。@rc-component/util/lib/*的引用改为从@rc-component/util根入口导入。背景
配合 rc 包统一避免依赖其他 rc 包的
es/lib构建产物内部路径,改为使用公开根入口 API。验证
git diff --checknpm run compile、npm run lint、npm test。Summary by CodeRabbit
发布说明